package cn.wolfcode.luowowo.service;

import cn.wolfcode.luowowo.article.domain.StrategyDetail;
import cn.wolfcode.luowowo.common.util.JsonResult;
import cn.wolfcode.luowowo.vo.StatisVO;

import java.util.List;

public interface IStrateryStatisRedisService {
    void statisAndUpdateViewnum(Long id, int i, int type );

    StatisVO getStatisRedis(String key);

    JsonResult favor(Long sId, Long uId,int userFavorType);

    JsonResult strategyThumbup(Long sid, Long userInfoId, int userFavorType);

    void setReplynumStatisRedis(Long detailId, int i, String sKey);

    boolean checkFavor(Long id, String ukey);

    void initRedisStatis();

    void redisPersistent();

    void initRedisCommend();

    List<StatisVO> getCommendVO(String key);





    /**
     * 加载页面的时候 操作攻略的阅读数
     * @param strategyDetailId
     * @param num 阅读数加1
     *//*
    void statisAndUpdateViewnum(Long strategyDetailId, int num);

    *//**
     * 根据key获取vo对象
     * @param join
     * @return
     *//*
    StatisVO getStatisRedis(String join);

    *//**
     * 操作评论数
     * @param detailId
     * @param i
     *//*
    void setReplynumStatisRedis(Long detailId, int i);

    *//**
     * 操作收藏数
     * @param sid
     * @param id
     * @return
     *//*
    JsonResult favor(Long sid, Long id);

    *//**
     * 操作顶操作
     * @param sid
     * @param id
     * @return
     *//*
    JsonResult strategyThumbup(Long sid, Long uid);

    void initRedisStatis();

    void redisPersistent();
*/
}
